change "cd" funcion