hard coded index for type get code