fixed argument and parameters to deal with proper array