add reflection to attributes.