trimiing config