clean up attribute declaration API