simplify directory