removed code in main, added boilerplate