add groupOn1 function

closes #159