Temp is a[j]