refine result api