add security code for safe deleting