changed in to hasOwnProperty