got RBST print function working