math helper methods
removed direction