add console.log for clear function.