Change loop of list