Solved bug VNN and improved it