changed how the attributes are expresed from dict to a list of tuples