urlParser function added