actually use code in the demo