convert attribute to object field.