comparing objects within list as wel