some cleaning up of the editor