change to counter to reset on read