add master code