flood detection - part 1/2