reorder task so it's defined before we use it.