del function now works