comments on main function