tweaks on prediction and lag simulation