refine architecture