error check equation was wrong.