before apply map filter