cleaned up newlines and console.log