use setTimeout to schedule running

use setTimeout to schedule running