converting to a simple register vm