trying to fix not being able to find function