if you use new[], you must use delete[]