avoid duplicating instantiating a new repository