refactor for proper numOnly functionality