fixing tree syntax