working on equations of motion