maybe moving a function to a different spot will fix it