qtree working but needs testing