check num of arguments