update attributes inside class Data