update attributes to new format