clean up space and console.log