fixed argument count check