created first version from notebook