debugging not being able to find the function