quad tree now is correctly constructed