adding latest vp tree code