added generic function in editor interface