change display to array