adding hasOwnProperty header protection