Make ends of list