got equation to update with every click