flatten option