add separate filter function for "gain of reference" filter