refining last reading, last register logic