moved some numeric functions to inline