updating main directory