tweaked the corner cases of numeric functions.