Removed redundant group by