update renew function