solved filtering problem