update master code