added check for non-numerics