adds comparedTo array to compared elements