fix computation and fix record cycle count