fixed all compiler warnings