cleared a bunch of compiler warnings