flattened history