added parenthesis in main_loop call