added triggers to grouping and corresponding scan and hash