added ms_clear