finished division. made prettier functions.