add a filter to doc