added function to swith path, renamed print