still working on ifr_gain slicing