clear every 40 steps