snapped gist #30