fix in API
update in example codes
new examples codes