look for errors where the function is not a function