Change pk function