typo with hasOwnProperty