fixed a couple of warnings