changed renewal logic