tree and vis working separately