copied the code from tutorial
mad ethe tree bigger