fix code styles in type