start of typeseditor