main function return integer.