hopefully fixes code in blog post... maybe