code for running all 4 preprocs tested
selection criteria code (density)