simplifying scripts
 simplifying
 working now from within the notebook