switched to calculating all y trees during construction