modify selection criterion and error output name