moved group commands to n and p