fix number checking