refine demo