update to change directory