implement time span option