finish replace type code with module extension