adding -n option to remove additional newlines