replaced stringbuffers