main function changed