do you think you need to define this a one function? only one use