changed utils to use standard math lib instead of root