extend Draw function