started clear function