clean getCode