removed debug stuff, using StringBuilder in a case