working with editor