trimming file