implemented #filter w/ #define

need to figure out how to annotate this properly