implement __computeValue and __processValue to avoid code duplication