trying to get the equation correctly modified