fixing logic in example_two provider