finished macro based need to add figures equations.