updated vga code