made numeric functions to inline