added vm's functions body