update type definiton