added getURLPArameters function
