enforce function (fix compiler error)