preparing directory