correct error in checking supply and new utility function (v3)