implemented OnAttributeValue class