adding appropriate array values on items