flatten the list of lists