throw that in a function