array deletion fixed