fixing notebook problem