fixed up code warnings