dynamic filtering 2 for doc