removed everything not used from main.js