filtering with hash