changes related to filter.cpp modifications