add ResTable constructor