convert to new attribute syntax