fixed compile-time errors