removing some code warnings