added GetAttributeValue function