this example is used for testing preview command