some utility graphics functions