modified get_online_rental method