cancel and tidy