i’m going to try to switch to red-black trees