update for dir