removed old math lib stuff