main function
modify print format