removing doctrees