trying to fix delete event