make data structure recursive with raw