implemented array to manage multiple primary key