moved to HRepository