fixed bugs and white spray tree representation