trim & edit