modified version with analysis on complete and selected data sets