update after add directory