renamed name to type