finish add-attribute