addressed a load of VS compiler warnings