made function return data, rather than stash it...to be consistent with the rest of the model