added notebook, inverted plotting