works as expected with or