use tuple and namedtuple for schemardd