added basic trim