MTree mutate functions and grammar revise