corrected getNArgs