pass in the dependency instead of creating it