main function with comparison with GT