finished datamining script