change method name location to url