improve tasks reordering