add serial number to hierarchy