clean up code warnings