change type flags