Confine nth of type alternates to main