deleted unneeded filter function