change dump to string