proper implementation of group_spike