compate data attributes