trimming of files