refactor obj2txt to be a separate method
1 file changed