now I just need to figure out where to put a function