update pool math