changes for replacing new lines