now works with variable number of parameters