rewrote data recorder