add main method to AtB_DMJ