removed old directx code