tied events into groups. it works!