Clean some codes