updatePMap completed and works