return ref so this can be sorted etc