main snippet added