fixed a_using_b_per_photo helper