fixing compile-time warnings