brings repository factory