adds some points, then crashes
adding points is correct, but quering a rectangle crashes
quering points crashes sometimes
quering opints in rectangle finally works