remove prime duplicates, nstep correction