adding floodisallowed method