change dirtyness to nTargetSpacing