use existed typemirror