try to mitigate memory leak. (from creating to updating point array information)