remove duplicated array, make delete work