array merged and correct values displayed