changed cycles run depending on graded or non-graded (avoids excessive runtime at high p)