handles regression tree values