setting zero as per value of list