added filter.c
fixed filter