Update filter.cpp