editor tidy up