implemented number check