fixed up compilation errors