trim the transcript