added array index selection;