change the demo of optional type