changes toString to inOrderPrint