minimize shear transform
remove unused code