adapting array