added undefined variables