working with unflattening
working with unflattening