mining algorithm done