boundary is set, fixing memory leaks