fixed some issues. renamed veins to vein