potential fixes for compilation errors