removed bad trim method