removed unnecessary functions in main.js