why Stack Overflow error occurs - Search