correcting position on array.