fixes compiler warnings

fixes compiler warnings