use type specified for primary key