Decreasing and clearing the code