implemented change directory