fixing getRep