fixes compiler errors