fixed a few warnings