compare individual elements