successfully switching between boost and cut and updating the gain value as required.