added undefined variable