maybe unclosed vars
Loop tests: Out_of_memory when using unique -> try Set