formats responses