migrate to new attribute syntax