refine response constructure