what makes a function undefined - Search