removed resource mess