resolve compilation errors