added switch for auto make-up gain