add sample code for main parameters