fixed argument passing error