remove pointarray and pointarray index