fixing all compiler warnings