removing trailing files