this should live outside of the model, perhaps in utils as a global variable