adding gateway filtering list function