added editor functions