updating directory