add after delete func