added filter.cpp for convience of user