shove repeated code into a function