newline preserves indentation, removed debug console.log statements