simplified listsEqual