added group by filter functions