remove namedtuples for performance