added filter to CodeGen