take directory