refine query.exclude functions