added code for variadic methods