comments added for array[2]  if statement