update to commented version from blog