pivots were wrong signed, everything was upside down