update misery index code