change filter constructor