add break if first term is undefined