implemented first version of filters