We were defining a variable and then using it in some places while calculating it again in some other places.