corrected error with number of params