refine spec and building