updated list print to eventually terminate on circular list printing