add modifications to response