added drawDot function to all cases.