changed dict to data

referencing wrong var for ownproperty(key)