new function restore. Keys are completed now