adds Main object