remove arry and pointer