sim groupwise implemented

Signed-off-by: loopasam <samuel.croset@gmail.com>