updated to delete immediately