moved to editor.model