add urlencode
update code