cleaning up the response doc