fixed some code warnings