master update code