corrected transposed directions
cleanup