flattened repo