specify whether you want the results grouped or not