allow demo to switch between types
update demo