this is directx plactice.