attempted to make the equations readable