added leaf autodeletion, made a cool thing to debug leaf resizing