added undefined vars