-fixed all compiler warnings