change semantics of apply_filter; filter _after_ mapping