added Tree logic and changing interval ticks