getting CHN example to work