correcting counter, likely should be removed