fixed compile time warnings