changed in operator to hasOwnProperty