unpack experiment function updated