clean mr's code