work on making some methods more efficient by avoiding creating string builders multiple times