changed -1 to flood