adding option to choose preprocessing