outputting items in order