cleaned up code warnings