add a part in clear() function in TMB ME21