updating directories