refactor stringification