added pseudo-rep functionality