master added main method.