updated data attribute method