adding a main