refactoring notebook spec. use new syntax