replaced `attr()` with `data()`