remove some code warnings