update a pub