primary key conversion added