formatting response