rename rank[:type] to rank[:name]