small mod to drawing macro