avoid using given/when to make it 5.18 friendly