fixed new lines and leading spaces