added root depth to model state