updated vanguard logic