added number checking