first add of data mining code