change directory generation