added in the missing else statement to backup key