minor changes undefined word replaced with 'undefined'