Filter.cpp--> added filter functions