replace all instances of 'done' with 'end'