simplified the code since we were doing three transposes too much