set missing keys to undefined