added filter

putting my C++ skills to the test here...