added newline counter to output
added output dummy
merged