clean up return process on the trimit function