fixed all compile warnings