new loop method along with small adjustments and additional methods of VP class introduced