fixing some of the warnings/errors i had