fixed bug with newlines