adding number checking function (incomplete) and images