changes for PK generation