added realize tree and removed scooby doo variable