add delete entry function