steal that c to change directories to code function