using new getNextIdentifier function