handle valid-to