general base c design for al mining