trim down file