add primary key tags generation