corrected typo in deldnskey function