replaced print <br/> with appending to output