add example. fix problems