fixing more compile-time errors