added one if condition only for filters