I changed all the places where type was used