changed the format of the nested list