remove tmp + window->graphics