weld optimally