change directory struct