refactor url response