commiting the changes to the factory inside main.js