added the new main.m