to preserve directory