removed unused shearing code