sometimes the plant produces root nodules to which nitrogen can attach