fixed A/B logic