splitted the unprocessed list into two lists
updated comments