added rmrep count