removed methods that built tree in incorrect order