begin to write vm