remove newlines from MC