self correcting algorithm | ScratchStats