improve type