checking format of arguments