changed vd and fixed missing semicolon