parameters
changed to an array (input params)