finished showlist function