removes most compile-time warnings