change euler_run to return int
change euler_run to return int