add example and bugfix