3state tree