see my comment in the example above