main function name changed