remove newline and console.log