replace delete with delete[]
fix crash wrong delete[]
rename classes