aggregated query gui; data collection for empirical range; refactoring