removing unneeded pwd