better code for "Drawj2d"