initial typedec code