reverse nodes in k-group