uses macro instead of repeated of code in sao_band_filter