small changes to typedec