CHange data to attr