apparently u have to use delete[] to delete arrays... didn't know that