solved compilation errors