let's turn this into a function.