converted lists to proper cons cells: easier unification