fixed all of the compiler warnings