preliminary flash detection