reverse nodes in k group reimpl