Modified updatePra