remove unused code
added more string append chaining