added filter setting functin