renamed path to generatePath, renamed url to genarateUrl