add building of filters logic