hacked equal groups of three