improved indentation
fixed console.log