tidying up console.log