added math functions ot utils