duty to act in the best interests of the public entity