update after checking directory