fixes #29
add sample from #29