modify PointValue to make it more general

#3180