modify scope ,add logic_expr