removed 'trim_tail'