updated the whole directory