fixed argument check