removed unused methods and error stringBuilder e