add reverse option to demo