removed dependence on math library and everything is cleawr