update the list correctly