update type attributes