exit if number of arguments is incorrect