var function correction wacky

var function correction wacky