fix'd compile-time errors