update for condition length === 1.