before-and-after-trim