add batchDel method
cut code
add generator