activity mgn clear function