change Dialect methods to struct type.