essential code for JSM presentation