changed cd to cwd