switched the pressure calculation to return the pressure on both sides of the piston