fixed a few of the warnings