changed to getKeys() in scatter