changes for wrapped array access