to update gettypes