(edit) leaves in clean and dirty for testing