filter requests code