removed check_number method