fixing the rest of the compiler warnings