closure and state