added truncation capability to resultset\grouping