minor datawrangling following on from last one