added console.log snippet