added private floodfill methods