used isNumeric function only one time