revising ipynb script