refine build