added a checker for arguments