add pseudo-code for multi-attribute filtering