porting the examples to use without-ts