merge parameters slightly more efficiently