add snippet 'main'