added greater then and less then check for numericality