in his final years he dedicated mainly to teaching and research