trying to fix compilation errors