add case of primary key