added Factory to repository