added working rep counter