added panelFindHole function