generate id from key if item is found lacking