added attribution to Kris Shaffer's original work