cleans and edits