changes to current directory function