change scope of factory