not sure why but sometimes this array contained nils