added undefined checking in jenks