new data attribute logic