improved the handling for methods with unbounded number of parameters