fixing VS errors