add type to rank