fixed misplaced brackets in main