fixed more bugs in the pivot methods