separating two types of lists