squashed compile time warnings and a compile time error