more improvements to quad tree