cleaning Editor code