removed unused import; make sure we only write strings to result