add length on deleted event