filter elements from vector