a little work on rendering (d2d)