realization at 4am that this should be sorted b-a.