solve most of expand