removed grouping from sql