rename function
improve filter works function