updated the equations that describe the system