simplify setting enclose closure