finished ir , not working tree representation