fixes and updated example