adjusted user repository to new interface