some more analysis tree code added