changed fail message as per assignment to 'invalid argument'