fixes compilation errors