refine constants