added plan improvement given histotry trace