start of renew function